package zzz.a;

public class Triangle {
	/**

	gleichschenkliges dreieck

	kantenlänge, höhe, basispunkt (mitte untere kante, winkel der unteren kannte

					|
					|
					|
			 _______X_______


	methods:
	get
	set
	draw
	rotate



	 */

	private double x, double y, double length, double height, double angle;
	private Color color;



	public final double getX() {
		return x;
	}
	public final void setX(double x) {
		this.x = x;
	}
	public final double getY() {
		return y;
	}
	public final void setY(double y) {
		this.y = y;
	}
	public final double getLength() {
		return length;
	}
	public final void setLength(double length) {
		this.length = length;
	}
	public final double getHeight() {
		return height;
	}
	public final void setHeight(double height) {
		this.height = height;
	}
	public final double getAngle() {
		return angle;
	}
	public final void setAngle(double angle) {
		this.angle = angle;
	}
	public final Color getColor() {
		return color;
	}
	public final void setColor(Color color) {
		this.color = color;
	}
	public Triangle(double x, double y, double length, double height, double angle) {
		public void rotate(double delta) {
			angle += delta;
		}
	}

	public void draw () {
		StdDraw.setPenColor(color);
		double dx = (length/2)*Math.cos(angle);
		double dy = (length/2) * Math.sin(angle);
		usw

	}

}
